<template>
  <div class='Home'>
      <div class="wraps">
        <div class="banner">
        </div>
        <div class="font">
          <span class="f1">千帆争渡，吾必砥砺前行！</span>
          <span class="f2">All thing will be meanful</span>
        </div>
      </div>
        <div class="btn" @click="alert">To be contined</div>
 
</div>
</template>

<script>

export default {
name:'Home',
components:{
},
methods: {
  alert(){
    alert('小宝贝你来啦？')
  }
},
}
</script>

<style Lang='less' scoped>

.Home{
  height: 100%;
  position: relative;
}

.wraps{
  height: 100%;
}
  .banner{
    width: 100%;
    height: 100%;
    background:url(../../assets/img/girl.jpg) no-repeat 100%;
    background-attachment: fixed;
     background-size: cover;

  }
  img{
    width: 100%;
    height: 100%;
  }
  .font{
    
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%);
  }
  .f1{
        font-family: '楷体';
    font-family: Verdana;
    color: white;
    font-size: 30px;
  }
  .f2{
    margin-top: 15px;
    color: tomato;
    text-align: center;
    font-size: 19px;
  }
  .btn{
    position: relative;
    border-radius:20px;
    line-height: 50px;
    font-size: 20px;
    color: teal;
    position:absolute;
    top: 60%;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 50px;
    text-align: center;
    background-color:palegreen;
    /* background-color: burlywood; */
    animation: sun 5s infinite;
  }
  .btn::before{
    content: '';
    position: absolute;
    left: -2px;
    top: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(90deg,#03a9f4 0%,#f441a5 25%,#ffeb3b 50%,#03a9f4 100%);
    background-size: 400%;
    z-index: -1;
    filter: blur(20px);
    /* animation: sun 5s infinite; */

  }
  .btn::before:hover{
        animation: sun 8 s infinite;

  }
  @keyframes sun {
    100%{
      background-position: -400% 0;
    }
    
  }
  .btn:hover{
      background: linear-gradient(90deg,#03a9f4 0%,#f441a5 25%,#ffeb3b 50%,#03a9f4 100%);

    background-size: 400%;
    cursor: pointer;
  }
  @media screen and (max-width: 414px) {
      .banner{
        transition: all .5s;
            background:url(../../assets/img/girl.jpg) no-repeat;
            background-size: auto 100%;
            background-position:-300px 0;

      }
        .btn:hover{
          color: blanchedalmond;
  }
  .font{
    width: 100%;
  }
  .f1{
    font-size: 2rem;
    text-align: center;
    color: brown;
  }
  
}
</style>